<template>
  <div>
    <!-- 整个页面的外层容器 -->
    <el-container>
      <!-- 顶栏 -->
      <el-header class="layout-header">
        <h1>DGP物流</h1>
      </el-header>
      <!-- 下半部分 -->
      <el-container class="layout-body">
        <!-- 下半部分的左侧边栏 -->
        <el-aside class="layout-aside">
          <el-menu
              router
              :default-active="$router.currentRoute.path"
              class="el-menu-vertical-demo"
              background-color="#222c32"
              text-color="#fff"
              active-text-color="#ffd04b">

            <el-menu-item index="1">
              <i class="el-icon-s-home"></i>
              <span>查询资产</span>
            </el-menu-item>
            <el-menu-item index="/sys-admin/add/SA">
              <i class="el-icon-s-home"></i>
              <span>入库申请</span>
            </el-menu-item>

            <el-menu-item index="/sys-admin/add/WEI">
              <i class="el-icon-s-home"></i>
              <span>入库验收</span>
            </el-menu-item>

            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>管理资产</span>
              </template>
              <el-menu-item index="/sys-admin/Manage assets/AC">
                <i class="el-icon-s-home"></i>
                <span>资产领用</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/AA">
                <i class="el-icon-s-home"></i>
                <span>资产调拨</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/AB">
                <i class="el-icon-s-home"></i>
                <span>资产借用</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/AI">
              <i class="el-icon-s-home"></i>
              <span>资产减损</span>
            </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/AR">
                <i class="el-icon-s-home"></i>
                <span>资产报废</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/ARe">
                <i class="el-icon-s-home"></i>
                <span>资产送修</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/return">
                <i class="el-icon-s-home"></i>
                <span>资产归还</span>
              </el-menu-item>
              <el-menu-item index="/sys-admin/Manage assets/changes">
                <i class="el-icon-s-home"></i>
                <span>资产变更</span>
              </el-menu-item>
            </el-submenu>

            <el-menu-item index="/sys-admin/add/FA">
              <i class="el-icon-s-home"></i>
              <span>固定资产</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <!-- 下半部分的右侧的主要区域 -->
        <el-main class="layout-main">
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
.layout-header {
  background: #1684b0;
}

.layout-header h1 {
  color: #fff;
  line-height: 60px;
}

.layout-body {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
}

.layout-aside {
  background: #222c32;

}

.layout-main {
  background: #E9EEF3;
}
</style>